package com.xuecheng.user.exception;

import com.xuecheng.base.exception.XCPlusBaseException;

/**
 * @author 勾新杰
 * @version 1.0
 * @description: 邮箱已注册
 * @date 2025/2/25 21:00
 */
public class AuthEmailAlreadyRegisterException extends XCPlusBaseException {

    AuthEmailAlreadyRegisterException(String msg) {
        super(msg);
    }

    public static void cast() {
        throw new AuthEmailAlreadyRegisterException(AuthError.AUTH_EMAIL_ALREADY_REGISTER.getErrMsg());
    }
}
